<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<link rel="icon" href="/uploads/<?php echo $project_code; ?>/favicon.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="/uploads/<?php echo $project_code; ?>/favicon.ico" type="image/x-icon" />
	<?php if($project_type == PROJECT_TYPE_MOBILE){ ?>
	<meta content="1 days" name="revisit-after" />
	<meta content="telephone=no" name="format-detection" />
	
	<meta name="viewport" content="width=<?php echo $project['project_device_width']; ?>,user-scalable=0,target-densitydpi=device-dpi">
	<!--
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, target-densitydpi=medium-dpi, user-scalable=0" />
-->

	<meta content="black" name="apple-mobile-web-app-status-bar-style" />
	<meta content="false" id="twcClient" name="twcClient" />
	<?php }  ?>
	
	<title><?php echo $title; ?></title>
	<script>var zmdoc = zmdoc||{};</script>
	<!--[if IE]>
		<?php if(in_array('html5.js',$common_file)) {?>
			<script type="text/javascript" src="<?php echo COMMON_URL ?>html5.js"></script>
		<?php } ?>
		<?php if(in_array('ie.min.css',$common_file)) {?>
			<link type="text/css" rel="stylesheet" href="<?php echo COMMON_URL ?>ie.min.css" />
		<?php } ?>
		<?php if(in_array('ie6.min.css',$common_file)) {?>
			<link type="text/css" rel="stylesheet" href="<?php echo COMMON_URL ?>ie6.min.css" />
		<?php } ?>
	<![endif]-->

	<?php if(in_array('animate.css',$common_file)) {?>
		<link type="text/css" rel="stylesheet" href="<?php echo COMMON_URL ?>animate.css" />
	<?php } ?>
	
	<?php
	global $common_static_file_list;
	foreach ($common_static_file_list as $v) {
		if(in_array($v,$common_file)&&(strpos($v, '.css')===false)&&($v!='jquery.pngFix.js'&&$v!='html5.js')) {
			echo '<script type="text/javascript" src="'.COMMON_URL.$v.'"></script>';
		}
	}
	?>
	<?php if(in_array('jquery.pngFix.js',$common_file)) {?>
	<!--[if IE 6]>
		<script type="text/javascript" src="<?php echo COMMON_URL ?>jquery.pngFix.js"></script>
		<script type="text/javascript">
		$(function(){
		$(document).pngFix();
		})
		</script>
	<![endif]-->
	<?php } ?>
	<script type="text/javascript"> <?php echo $project_js; ?></script>
	<style type="text/css"><?php echo $project_css; ?></style>	
	<style><?php echo $template_css ?></style>
</head>
<body class="zm <?php echo $project_type == PROJECT_TYPE_MOBILE?'zmmobile':''; ?>">
	<?php echo $template_html ?>
</body>
</html>
